import request from '@/utils/request'

// 查询工序分类列表
export function listProcedureClassify(query) {
  return request({
    url: '/base/ProcedureClassify/list',
    method: 'get',
    params: query
  })
}

// 查询工序分类详细
export function getProcedureClassify(id) {
  return request({
    url: '/base/ProcedureClassify/' + id,
    method: 'get'
  })
}

// 新增工序分类
export function addProcedureClassify(data) {
  return request({
    url: '/base/ProcedureClassify',
    method: 'post',
    data: data
  })
}

// 修改工序分类
export function updateProcedureClassify(data) {
  return request({
    url: '/base/ProcedureClassify',
    method: 'put',
    data: data
  })
}

// 删除工序分类
export function delProcedureClassify(id) {
  return request({
    url: '/base/ProcedureClassify/' + id,
    method: 'delete'
  })
}
